package cn.chengpengper.im.platform.common.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/*@formatter:off*/

/**
 * ____________________
 * < 神兽护体，永无bug! >
 * --------------------
 *
 * @author huchengpeng
 * @version v1.0.0
 * @date 2024/11/23 15:22
 * @description 结果状态码
 */

/*@formatter:on*/

@Getter
@AllArgsConstructor
public enum HttpCode {

    SUCCESS(200, "成功"),
    NO_LOGIN(400, "未登录"),
    INVALID_TOKEN(401, "Token 无效或已过期"),
    PARAMS_ERROR(402,"参数错误"),
    PROGRAM_ERROR(500, "系统繁忙，请稍后再试"),
    PASSWORD_ERROR(10001, "密码不正确"),
    USERNAME_ALREADY_REGISTER(10003, "该用户名已注册"),
    XSS_PARAM_ERROR(10004, "请不要输入非法内容"),
    ;

    private final Integer code;

    private final String msg;
}
